def main():
    s = input("请输入一个文字：").strip()

    if isPalindrome(s):
        print(s,"is a plindrome")
    else:
        print(s,"is not a palindrome")


def isPalindrome(s):
    low = 0
    while low < len(s)/2:
        if s[low] != s[len(s)-low-1]:
            return False
        low += 1
    return True

main()